package battle;

import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.net.URL;

import com.golden.gamedev.util.ImageUtil;

public class BattleEvent {
	
	private final int WIDTH = 640;
	private final int HEIGHT = 480;
	public boolean endBattle;

	//TODO: It doesn't work!!!!
	
	public BattleEvent(){
		endBattle = true;
	}

	//Sets up a random battle using one of the monster formations from the map called mapName, as defined in a separate file.
	private void setup(String mapName){
		//Fetch monsters, monster setup, monster level... Put them on the map.
		//Fetch the active players, their stats, levels, jobs... Put them on the map.
	}
	
	public void startBattle(){
		this.endBattle = false;
	}
	
	public void render(Graphics2D g){
		BufferedImage logo;
		URL logoURL = battle.BattleEvent.class.getResource("white.png");
		BufferedImage orig = ImageUtil.getImage(logoURL);
		logo = ImageUtil.resize(orig, WIDTH, HEIGHT);
		g.drawImage(logo, 0, 0, null);
	}
}
